package com.bolao.bets;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTabHost;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.bolao.BuildingFragment;
import com.bolao.R;

public class BetsParentFragment extends Fragment {



    private FragmentTabHost tabHost;


    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
		
    	tabHost = new FragmentTabHost(getActivity());
    	tabHost.setup(getActivity(), getChildFragmentManager(), R.layout.activity_tab_ativity);

    	tabHost.addTab(tabHost.newTabSpec("Tab1").setIndicator(getString(R.string.teams)),
    			BetsTeamFragment.class, null);

    	tabHost.addTab(tabHost.newTabSpec("Tab2").setIndicator(getString(R.string.general)),
    			BetsGeneralFragment.class, null);

    	tabHost.addTab(tabHost.newTabSpec("Tab3").setIndicator(getString(R.string.player)),
    	    BuildingFragment.class, null);

    	tabHost.addTab(tabHost.newTabSpec("Tab4").setIndicator(getString(R.string.matchs)),
    	    BetsMatchsFragment.class, null);

    	return tabHost;
    }
    
}
